package com.lujieni.async.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @author
 * @Title: A
 * @Description:
 * @date 2022/2/23 2:15 下午
 *
 * 这样写会报错
 *
 */
@Component
public class C {

    private B b;

    @Autowired
    public void setB(B b) {
        this.b = b;
    }

    public void testA() {
    /*    System.out.println("testA:"+Thread.currentThread().getName());
        System.out.println("testA");*/
       // b.show();
    }

}
